package org.zxyj.manage.thread;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.zxyj.manage.service.ICheckService;
import org.zxyj.manage.service.ICoursePaperService;
import org.zxyj.manage.service.ICropService;
import org.zxyj.manage.service.IPointRecognitionService;

/**
 * service实例化
    * @ClassName: GetInstanceService
    * @author liuyong
    * @date 2016年8月18日
 */
@Component
public class GetInstanceService {
	private static GetInstanceService instance = null;
	protected Logger logger = LoggerFactory.getLogger(this.getClass());
	@Autowired
	private ICropService cropService;
	@Autowired
	private ICheckService checkService;
	@Autowired
	private IPointRecognitionService pointRecognitionService;
	@Autowired
    private ICoursePaperService coursePaperService;
	
	GetInstanceService(){
		instance = this;
		logger.info("GetInstanceService init------------------");
	}
	
	public static GetInstanceService getInstance() {
		return instance;
	}

	public ICropService getCropService() {
		return cropService;
	}

	public ICheckService getCheckService() {
		return checkService;
	}

	public IPointRecognitionService getPointRecognitionService() {
		return pointRecognitionService;
	}

	public ICoursePaperService getCoursePaperService() {
		return coursePaperService;
	}

}
